<?php

require_once($CFG->libdir.'/pagelib.php');
require_once($CFG->dirroot.'/course/lib.php'); // needed for some blocks

define('PAGE_RP_VIEW',   'mod-resourcepage-view');

page_map_class(PAGE_RP_VIEW, 'page_resourcepage');

$DEFINEDPAGES = array(PAGE_RP_VIEW);

class page_resourcepage extends page_generic_activity {

    var $navblockinstance = NULL;

    function init_quick($data) {
        if(empty($data->pageid)) {
            error('Cannot quickly initialize page: empty course id');
        }
        $this->activityname = 'resourcepage';
        parent::init_quick($data);
    }
  
    function get_type() {
        return PAGE_RP_VIEW;
    }
}

?>
